const path = require('path')

module.exports = {
  publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
  outputDir: 'myblog',
  // 不停的发出请求/sockjs-node/info
  devServer: {
    host: '127.0.0.1',
    port: 8080
  },
  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'css',
      patterns: [
        path.resolve(__dirname, './src/global.css') // 路径
      ]
    }
  }
}
